const router = require('koa-router')()
const controller = require('../controller/home')

router
    .get('/', controller.getHome)//渲染注册页面
    .get('/home', controller.getHome)//渲染注册页面
    .get('/article/list', controller.getArticleList)
    .get('/setArticle', controller.getArticle)
    .post('/article/save', controller.setArticle)
    

module.exports = router